package Merlion.util.state;

import java.io.Serializable;
import java.util.Date;

public class ContactState implements Serializable {

    private Long id;
    private String salutation;
    private String firstName;
    private String lastName;
    private String companyName;
    private Long companyId;
    private String contactNum;
    private String mobileNum;
    private String faxNum;
    private String address;
    private String addressState;
    private String country;
    private String city;
    private String postalCode;
    private String emailAddress;
    private String leadSource;
    private String description;
    private String title;
    private String department;
    private Date dob;
    private Date dateCreated;

    public ContactState() {
    }
    
    public ContactState(Long id, String salutation, String firstName, String lastName, Long companyId, String companyName,
            String leadSource, String title, String department, String contactNum,
            String mobileNum, String faxNum, String emailAddress, String address,
            String addressState, String country, String city, String postalCode,
            Date dob, String description) {
        this.setId(id);
        this.setCompanyId(companyId);
        this.setSalutation(salutation);
        this.setFirstName(firstName);
        this.setLastName(lastName);
        this.setCompanyName(companyName);
        this.setLeadSource(leadSource);
        this.setTitle(title);
        this.setDepartment(department);
        this.setContactNum(contactNum);
        this.setMobileNum(mobileNum);
        this.setFaxNum(faxNum);
        this.setEmailAddress(emailAddress);
        this.setAddress(address);
        this.setAddressState(addressState);
        this.setCountry(country);
        this.setCity(city);
        this.setPostalCode(postalCode);
        this.setDob(dob);
        this.setDescription(description);
    }

    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        if (address.equals("")) {
            address = " ";
        }
        this.address = address;
    }

    public String getAddressState() {
        return addressState;
    }

    public void setAddressState(String addressState) {
        if (addressState.equals("")) {
            addressState = " ";
        }
        this.addressState = addressState;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        if (city.equals("")) {
            city = " ";
        }
        this.city = city;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        if (companyName.equals("")) {
            companyName = " ";
        }
        this.companyName = companyName;
    }

    public String getContactNum() {
        return contactNum;
    }

    public void setContactNum(String contactNum) {
        if (contactNum.equals("")) {
            contactNum = " ";
        }
        this.contactNum = contactNum;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        if (country.equals("")) {
            country = " ";
        }
        this.country = country;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        if (department.equals("")) {
            department = " ";
        }
        this.department = department;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        if (description.equals("")) {
            description = "No description found.";
        }
        this.description = description;
    }

    public Date getDob() {
        return dob;
    }

    public void setDob(Date dob) {
        this.dob = dob;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        if (emailAddress.equals("")) {
            emailAddress = " ";
        }
        this.emailAddress = emailAddress;
    }

    public String getFaxNum() {
        return faxNum;
    }

    public void setFaxNum(String faxNum) {
        if (faxNum.equals("")) {
            faxNum = " ";
        }
        this.faxNum = faxNum;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        if (firstName.equals("")) {
            firstName = " ";
        }
        this.firstName = firstName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        if (lastName.equals("")) {
            lastName = " ";
        }
        this.lastName = lastName;
    }

    public String getLeadSource() {
        return leadSource;
    }

    public void setLeadSource(String leadSource) {

        this.leadSource = leadSource;
    }

    public String getMobileNum() {
        return mobileNum;
    }

    public void setMobileNum(String mobileNum) {
        if (mobileNum.equals("")) {
            mobileNum = " ";
        }
        this.mobileNum = mobileNum;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        if (postalCode.equals("")) {
            postalCode = " ";
        }
        this.postalCode = postalCode;
    }

    public String getSalutation() {
        return salutation;
    }

    public void setSalutation(String salutation) {

        this.salutation = salutation;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        if (title.equals("")) {
            title = " ";
        }
        this.title = title;
    }
}
